﻿using System.Collections.Generic;

namespace mal.web.Balades.Business.UnitTest.Bootstrap
{
    class BootstrapManager
    {
        #region Fields
        private List<BootstrapBase> bootstraps;
        #endregion

        #region Construction / Destruction
        public BootstrapManager()
        {
            bootstraps = new List<BootstrapBase>();

            bootstraps.Add(new VisitBootstrap());
            bootstraps.Add(new PictureBootstrap());
            bootstraps.Add(new InformationBootstrap());
        }
        #endregion

        #region enum, struct, class

        #endregion

        #region Properties

        #endregion

        #region Methods
        public void InitializeData()
        {
            Clean();
            Fill();
        }

        public void Fill()
        {
            for (int i = 0; i < this.bootstraps.Count; i++)
            {
                this.bootstraps[i].Fill();
            }
        }

        public void Clean()
        {
            for (int i = this.bootstraps.Count - 1; i >= 0; i--)
            {
                this.bootstraps[i].Clean();
            }
        }
        #endregion

        #region Events

        #endregion


    }
}
